<!--
 * @FileDescription 应用界面
 * @Author 杨宇翔
 * @Date 20220705 15:06:24
 * @LastEditors 杨宇翔
 * @LastEditTime 20220705 15:06:24
-->
<template>
    <div class="use-page">
        <!-- 三个场景选择界面 -->
        <UseOptions class="options" />
        <!-- 新点云呈现界面 -->
        <UsePresentation />
        <!-- 旧点云设置界面 -->
        <UseScan /> 
        <!-- 地图构建界面 -->
        <UseMapBuilding />  

        <LidarNav />
        <LidarHeader />
    </div>
</template>

<script setup lang="ts">
import LidarHeader from './LidarHeader.vue';
import LidarNav from './LidarNav.vue';

import UseOptions from './UseOptions.vue';
import UsePresentation from './UsePresentation.vue';
import UseScan from './UseScan.vue';
import UseMapBuilding from './UseMapBuilding.vue';
import { onMounted, onUnmounted } from 'vue';
import { UseComponent } from './LidarComponent';

onMounted(() => UseComponent.Default.Awake());
onUnmounted(() => UseComponent.Default.Destroy());
</script>

<style scoped>
.use-page {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    background-color: transparent;

    display: grid;
    grid-template-columns: 6fr 2fr 2fr;
    grid-template-rows: 22fr 3fr;
    gap: 0.1rem;
    grid-template-areas: 'basic extension environment'
        'basic extension options';
}
</style>